package ru.ksu.niimm.cll.transword.shared.dto;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tw_fixed_exp")
public class FixedExpressionDTO implements java.io.Serializable {
	
	private static final long serialVersionUID = 7440297955003302414L;
	@Id
	@Column(name="tw_fe_id", nullable = false )
	private int fixedExpressionId;
	
	@Column(name="tw_fe_usagestyle", nullable = false )
	private int fixedUsageStyle;
	
	@Column(name="tw_fe_corestring", nullable = false, length=200)
	private String fixedExpressionName;
	
	@Column(name="tw_fe_definition_short")
	private String fixedExpressionDescription;
	
	@Column(name="tw_fe_eng_translation", length=50)
	private String enTtranslation;
	
	@Column(name="tw_fe_modified")
	private Date modified;

	@Column(name="tw_fe_created")
	private Date created;
	
	@Column(name="tw_fe_exported")
	private Date exported;
	
	@Column(name="tw_fe_modified_by")
	private String modifiedBy;
	
	@Column(name="tw_fe_created_by")
	private String createdBy;
	
	@Column(name="tw_fe_ignore_on_search")
	private boolean ignoreOnSearch;
	
	@Column(name="tw_fe_do_not_display")
	private boolean doNotDisplay;
	
	@Column(name="tw_fe_editorsnote")
	private String editorsNote;
	
	@Column(name="tw_fe_searchstring")
	private String searchStr;
	
	@Column(name="tw_fe_ignore_on_search")
	private String usageStyle;
	
	@Column(name="tw_fe_usagestyle")
	public int getFixedUsageStyle() {
		return fixedUsageStyle;
	}

	public void setFixedUsageStyle(int fixedUsageStyle) {
		this.fixedUsageStyle = fixedUsageStyle;
	}

	public String getEnTtranslation() {
		return enTtranslation;
	}

	public void setEnTtranslation(String enTtranslation) {
		this.enTtranslation = enTtranslation;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getExported() {
		return exported;
	}

	public void setExported(Date exported) {
		this.exported = exported;
	}

	public String getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public boolean isIgnoreOnSearch() {
		return ignoreOnSearch;
	}

	public void setIgnoreOnSearch(boolean ignoreOnSearch) {
		this.ignoreOnSearch = ignoreOnSearch;
	}

	public boolean isDoNotDisplay() {
		return doNotDisplay;
	}

	public void setDoNotDisplay(boolean doNotDisplay) {
		this.doNotDisplay = doNotDisplay;
	}

	public String getEditorsNote() {
		return editorsNote;
	}

	public void setEditorsNote(String editorsNote) {
		this.editorsNote = editorsNote;
	}

	public String getSearchStr() {
		return searchStr;
	}

	public void setSearchStr(String searchStr) {
		this.searchStr = searchStr;
	}

	public String getUsageStyle() {
		return usageStyle;
	}

	public void setUsageStyle(String usageStyle) {
		this.usageStyle = usageStyle;
	}

	public FixedExpressionDTO() {
		// TODO Auto-generated constructor stub
	}

	public FixedExpressionDTO(int feid) {
		this.fixedExpressionId = feid;		
	}

	public FixedExpressionDTO(int feid, String name, 
			                  String description,
		 	                  String usagestyle) {
		this.fixedExpressionId = feid;
		this.fixedExpressionName = name;
		this.fixedExpressionDescription = description;
		this.usageStyle = usagestyle;
	}
	
	public long getFixedExpressionId() {
		return fixedExpressionId;
	}

	public void setFixedExpressionId(int fixedExpressionId) {
		this.fixedExpressionId = fixedExpressionId;
	}

	public String getFixedExpressionName() {
		return fixedExpressionName;
	}

	public void setFixedExpressionName(String fixedExpressionName) {
		this.fixedExpressionName = fixedExpressionName;
	}

	public String getFixedExpressionDescription() {
		return fixedExpressionDescription;
	}

	public void setFixedExpressionDescription(String fixedExpressionDescription) {
		this.fixedExpressionDescription = fixedExpressionDescription;
	}

}
